Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Update all card and postbox styles to match Gutenberg's component patterns and the WordPress Design System specifications. **Base Card Styles:** - Background: #ffffff (white) - Border: 1px solid rgba(0,0,0,0.1) for subtle appearance - Border radius: 8px for dashboard widgets, plugin cards, theme cards, welcome panel - Border radius: 0 for post editor metaboxes (maintains existing behavior) - Padding: 16px for small cards, 16px 24px for medium cards **Dashboard Widgets:** - Border radius: 8px with rounded corners - Header padding: 12px vertical, 16px horizontal for compact appearance - Content padding: 16px (was 0 12px 12px) - "At a Glance" widget: 16px top padding for proper alignment - "Activity" widget: maintains 12px horizontal padding for layout compatibility - Welcome panel: 8px border radius, 24px padding (was 48px) **Drag and Drop Interactions:** - Gutenberg-style blue highlights using var(--wp-admin-theme-color) - Active drop zones: subtle blue background rgba(var(--wp-admin-theme-color--rgb), 0.04) - Sortable placeholder: 2px solid blue border with 8px border radius - Meta-box-sortables: 4px padding to reserve space for drag feedback - Container margins: adjusted to maintain original layout spacing - No dimensional changes during drag operations **Plugin Cards:** - Border radius: 8px with overflow hidden - Border: rgba(0,0,0,0.1) - Padding: 16px for top and bottom sections - Card bottom: updated border color for consistency **Theme Cards:** - Border radius: 8px with overflow hidden - Background: solid white (removed semi-transparent overlay) - Theme name: 16px padding, border-top instead of inset box-shadow - "Add New Theme" card: maintains transparent background and borderless style **Generic Card Component:** - Border radius: 8px - Padding: 16px 24px (was 0.7em 2em 1em) - Border: rgba(0,0,0,0.1) - Removed box-shadow for cleaner appearance **Post Editor Metaboxes:** - Maintains square corners (border-radius: 0) - Drag interactions: blue background tint, no border - 4px padding on sortables with compensating margins - Collapsed state: header border hidden See #64308. # Conflicts: # src/wp-admin/css/themes.css
9443309 to
e0468b5
Compare
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
mukeshpanchal27
left a comment
There was a problem hiding this comment.
Look solid in playground. Keep it up
joedolson
left a comment
There was a problem hiding this comment.
There are a few things I think could be tweaked here, but it's basically 👍.
|
Tested this in Playground. The cards look fine as per the Figma designs. QA Notes: Dashboard (Quick Draft, At a Glance, Activity widgets)✅
Added supporting media. PS: This is my first time testing a functionality. If I have missed something, please let me know. https://github.com/user-attachments/assets/d652fe04-b730-4b2a-89dc-09b839815dc2
|
Co-authored-by: Mukesh Panchal <mukeshpanchal27@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates wp-admin “card”-style UI components (themes, plugin cards, dashboard metaboxes, and generic .card) to match the “Admin Reskin: Cards” visual direction (rounded corners, updated padding, lighter separators, revised drag/drop styling).
Changes:
- Restyles theme tiles and plugin cards with new padding, rounded corners, and updated separators.
- Updates dashboard/postbox metabox spacing and drag/drop placeholder/empty-state visuals.
- Adjusts global
.cardstyling (padding, border, radius, background).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 15 comments.
Show a summary per file
| File | Description |
|---|---|
src/wp-admin/css/themes.css |
Theme tile/card reskin (borders, radius, header separator, overflow behavior). |
src/wp-admin/css/list-tables.css |
Plugin card reskin (borders, radius, padding, bottom separator). |
src/wp-admin/css/forms.css |
Updates generic .card styling to match new card design. |
src/wp-admin/css/edit.css |
Updates post screen metabox sortable drag-state styling and spacing. |
src/wp-admin/css/dashboard.css |
Updates dashboard widget gutters, metabox styling, and drag/empty drop-zone visuals. |
src/wp-admin/css/common.css |
Updates shared postbox/stuffbox styling and sortable placeholder visuals. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@fabiankaegy Does this card reskin also includes the Classic Editor metaboxes?
Also, I am not sure if this is categorized as a card as well: Thanks! |
|
@phpbits right now no. I've kept the scope of it intentionally small |
| margin: 0 8px 20px; | ||
| min-height: 0; | ||
| margin-right: 8px; | ||
| padding: 4px; |
There was a problem hiding this comment.
@fabiankaegy Dashboard empty widget box miss align by 4px. Check screenshot.










Trac ticket: https://core.trac.wordpress.org/ticket/64549
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.